Integrand size = 18, antiderivative size = 67 \[ \int (c+d x)^2 (a+a \cosh (e+f x)) \, dx=\frac {a (c+d x)^3}{3 d}-\frac {2 a d (c+d x) \cosh (e+f x)}{f^2}+\frac {2 a d^2 \sinh (e+f x)}{f^3}+\frac {a (c+d x)^2 \sinh (e+f x)}{f} \]
[Out]
Time = 0.07 (sec) , antiderivative size = 67, normalized size of antiderivative = 1.00, number of steps used = 5, number of rules used = 3, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.167, Rules used = {3398, 3377, 2717} \[ \int (c+d x)^2 (a+a \cosh (e+f x)) \, dx=-\frac {2 a d (c+d x) \cosh (e+f x)}{f^2}+\frac {a (c+d x)^2 \sinh (e+f x)}{f}+\frac {a (c+d x)^3}{3 d}+\frac {2 a d^2 \sinh (e+f x)}{f^3} \]
[In]
[Out]
Rule 2717
Rule 3377
Rule 3398
Rubi steps \begin{align*} \text {integral}& = \int \left (a (c+d x)^2+a (c+d x)^2 \cosh (e+f x)\right ) \, dx \\ & = \frac {a (c+d x)^3}{3 d}+a \int (c+d x)^2 \cosh (e+f x) \, dx \\ & = \frac {a (c+d x)^3}{3 d}+\frac {a (c+d x)^2 \sinh (e+f x)}{f}-\frac {(2 a d) \int (c+d x) \sinh (e+f x) \, dx}{f} \\ & = \frac {a (c+d x)^3}{3 d}-\frac {2 a d (c+d x) \cosh (e+f x)}{f^2}+\frac {a (c+d x)^2 \sinh (e+f x)}{f}+\frac {\left (2 a d^2\right ) \int \cosh (e+f x) \, dx}{f^2} \\ & = \frac {a (c+d x)^3}{3 d}-\frac {2 a d (c+d x) \cosh (e+f x)}{f^2}+\frac {2 a d^2 \sinh (e+f x)}{f^3}+\frac {a (c+d x)^2 \sinh (e+f x)}{f} \\ \end{align*}
Time = 0.23 (sec) , antiderivative size = 80, normalized size of antiderivative = 1.19 \[ \int (c+d x)^2 (a+a \cosh (e+f x)) \, dx=a \left (c^2 x+c d x^2+\frac {d^2 x^3}{3}-\frac {2 d (c+d x) \cosh (e+f x)}{f^2}+\frac {\left (c^2 f^2+2 c d f^2 x+d^2 \left (2+f^2 x^2\right )\right ) \sinh (e+f x)}{f^3}\right ) \]
[In]
[Out]
Time = 0.20 (sec) , antiderivative size = 77, normalized size of antiderivative = 1.15
method | result | size |
parallelrisch | \(\frac {\left (\left (\left (d x +c \right )^{2} f^{2}+2 d^{2}\right ) \sinh \left (f x +e \right )+f \left (\left (-2 x \,d^{2}-2 c d \right ) \cosh \left (f x +e \right )+x \left (\frac {1}{3} x^{2} d^{2}+c d x +c^{2}\right ) f^{2}-2 c d \right )\right ) a}{f^{3}}\) | \(77\) |
risch | \(\frac {a \,d^{2} x^{3}}{3}+a d c \,x^{2}+a \,c^{2} x +\frac {a \,c^{3}}{3 d}+\frac {a \left (d^{2} x^{2} f^{2}+2 c d \,f^{2} x +c^{2} f^{2}-2 d^{2} f x -2 c d f +2 d^{2}\right ) {\mathrm e}^{f x +e}}{2 f^{3}}-\frac {a \left (d^{2} x^{2} f^{2}+2 c d \,f^{2} x +c^{2} f^{2}+2 d^{2} f x +2 c d f +2 d^{2}\right ) {\mathrm e}^{-f x -e}}{2 f^{3}}\) | \(146\) |
parts | \(\frac {a \left (d x +c \right )^{3}}{3 d}+\frac {a \left (\frac {d^{2} \left (\left (f x +e \right )^{2} \sinh \left (f x +e \right )-2 \left (f x +e \right ) \cosh \left (f x +e \right )+2 \sinh \left (f x +e \right )\right )}{f^{2}}-\frac {2 d^{2} e \left (\left (f x +e \right ) \sinh \left (f x +e \right )-\cosh \left (f x +e \right )\right )}{f^{2}}+\frac {2 d c \left (\left (f x +e \right ) \sinh \left (f x +e \right )-\cosh \left (f x +e \right )\right )}{f}+\frac {d^{2} e^{2} \sinh \left (f x +e \right )}{f^{2}}-\frac {2 d e c \sinh \left (f x +e \right )}{f}+c^{2} \sinh \left (f x +e \right )\right )}{f}\) | \(162\) |
derivativedivides | \(\frac {\frac {d^{2} a \left (f x +e \right )^{3}}{3 f^{2}}+\frac {d^{2} a \left (\left (f x +e \right )^{2} \sinh \left (f x +e \right )-2 \left (f x +e \right ) \cosh \left (f x +e \right )+2 \sinh \left (f x +e \right )\right )}{f^{2}}-\frac {d^{2} e a \left (f x +e \right )^{2}}{f^{2}}-\frac {2 d^{2} e a \left (\left (f x +e \right ) \sinh \left (f x +e \right )-\cosh \left (f x +e \right )\right )}{f^{2}}+\frac {d c a \left (f x +e \right )^{2}}{f}+\frac {2 d c a \left (\left (f x +e \right ) \sinh \left (f x +e \right )-\cosh \left (f x +e \right )\right )}{f}+\frac {d^{2} e^{2} a \left (f x +e \right )}{f^{2}}+\frac {d^{2} e^{2} a \sinh \left (f x +e \right )}{f^{2}}-\frac {2 d e c a \left (f x +e \right )}{f}-\frac {2 d e c a \sinh \left (f x +e \right )}{f}+c^{2} a \left (f x +e \right )+c^{2} a \sinh \left (f x +e \right )}{f}\) | \(240\) |
default | \(\frac {\frac {d^{2} a \left (f x +e \right )^{3}}{3 f^{2}}+\frac {d^{2} a \left (\left (f x +e \right )^{2} \sinh \left (f x +e \right )-2 \left (f x +e \right ) \cosh \left (f x +e \right )+2 \sinh \left (f x +e \right )\right )}{f^{2}}-\frac {d^{2} e a \left (f x +e \right )^{2}}{f^{2}}-\frac {2 d^{2} e a \left (\left (f x +e \right ) \sinh \left (f x +e \right )-\cosh \left (f x +e \right )\right )}{f^{2}}+\frac {d c a \left (f x +e \right )^{2}}{f}+\frac {2 d c a \left (\left (f x +e \right ) \sinh \left (f x +e \right )-\cosh \left (f x +e \right )\right )}{f}+\frac {d^{2} e^{2} a \left (f x +e \right )}{f^{2}}+\frac {d^{2} e^{2} a \sinh \left (f x +e \right )}{f^{2}}-\frac {2 d e c a \left (f x +e \right )}{f}-\frac {2 d e c a \sinh \left (f x +e \right )}{f}+c^{2} a \left (f x +e \right )+c^{2} a \sinh \left (f x +e \right )}{f}\) | \(240\) |
[In]
[Out]
none
Time = 0.25 (sec) , antiderivative size = 102, normalized size of antiderivative = 1.52 \[ \int (c+d x)^2 (a+a \cosh (e+f x)) \, dx=\frac {a d^{2} f^{3} x^{3} + 3 \, a c d f^{3} x^{2} + 3 \, a c^{2} f^{3} x - 6 \, {\left (a d^{2} f x + a c d f\right )} \cosh \left (f x + e\right ) + 3 \, {\left (a d^{2} f^{2} x^{2} + 2 \, a c d f^{2} x + a c^{2} f^{2} + 2 \, a d^{2}\right )} \sinh \left (f x + e\right )}{3 \, f^{3}} \]
[In]
[Out]
Leaf count of result is larger than twice the leaf count of optimal. 151 vs. \(2 (65) = 130\).
Time = 0.22 (sec) , antiderivative size = 151, normalized size of antiderivative = 2.25 \[ \int (c+d x)^2 (a+a \cosh (e+f x)) \, dx=\begin {cases} a c^{2} x + \frac {a c^{2} \sinh {\left (e + f x \right )}}{f} + a c d x^{2} + \frac {2 a c d x \sinh {\left (e + f x \right )}}{f} - \frac {2 a c d \cosh {\left (e + f x \right )}}{f^{2}} + \frac {a d^{2} x^{3}}{3} + \frac {a d^{2} x^{2} \sinh {\left (e + f x \right )}}{f} - \frac {2 a d^{2} x \cosh {\left (e + f x \right )}}{f^{2}} + \frac {2 a d^{2} \sinh {\left (e + f x \right )}}{f^{3}} & \text {for}\: f \neq 0 \\\left (a \cosh {\left (e \right )} + a\right ) \left (c^{2} x + c d x^{2} + \frac {d^{2} x^{3}}{3}\right ) & \text {otherwise} \end {cases} \]
[In]
[Out]
Leaf count of result is larger than twice the leaf count of optimal. 141 vs. \(2 (65) = 130\).
Time = 0.19 (sec) , antiderivative size = 141, normalized size of antiderivative = 2.10 \[ \int (c+d x)^2 (a+a \cosh (e+f x)) \, dx=\frac {1}{3} \, a d^{2} x^{3} + a c d x^{2} + a c^{2} x + a c d {\left (\frac {{\left (f x e^{e} - e^{e}\right )} e^{\left (f x\right )}}{f^{2}} - \frac {{\left (f x + 1\right )} e^{\left (-f x - e\right )}}{f^{2}}\right )} + \frac {1}{2} \, a d^{2} {\left (\frac {{\left (f^{2} x^{2} e^{e} - 2 \, f x e^{e} + 2 \, e^{e}\right )} e^{\left (f x\right )}}{f^{3}} - \frac {{\left (f^{2} x^{2} + 2 \, f x + 2\right )} e^{\left (-f x - e\right )}}{f^{3}}\right )} + \frac {a c^{2} \sinh \left (f x + e\right )}{f} \]
[In]
[Out]
Leaf count of result is larger than twice the leaf count of optimal. 146 vs. \(2 (65) = 130\).
Time = 0.27 (sec) , antiderivative size = 146, normalized size of antiderivative = 2.18 \[ \int (c+d x)^2 (a+a \cosh (e+f x)) \, dx=\frac {1}{3} \, a d^{2} x^{3} + a c d x^{2} + a c^{2} x + \frac {{\left (a d^{2} f^{2} x^{2} + 2 \, a c d f^{2} x + a c^{2} f^{2} - 2 \, a d^{2} f x - 2 \, a c d f + 2 \, a d^{2}\right )} e^{\left (f x + e\right )}}{2 \, f^{3}} - \frac {{\left (a d^{2} f^{2} x^{2} + 2 \, a c d f^{2} x + a c^{2} f^{2} + 2 \, a d^{2} f x + 2 \, a c d f + 2 \, a d^{2}\right )} e^{\left (-f x - e\right )}}{2 \, f^{3}} \]
[In]
[Out]
Time = 0.14 (sec) , antiderivative size = 112, normalized size of antiderivative = 1.67 \[ \int (c+d x)^2 (a+a \cosh (e+f x)) \, dx=\frac {2\,a\,d^2\,\mathrm {sinh}\left (e+f\,x\right )-\frac {a\,f\,\left (6\,x\,\mathrm {cosh}\left (e+f\,x\right )\,d^2+6\,c\,\mathrm {cosh}\left (e+f\,x\right )\,d\right )}{3}+\frac {a\,f^2\,\left (3\,c^2\,\mathrm {sinh}\left (e+f\,x\right )+3\,d^2\,x^2\,\mathrm {sinh}\left (e+f\,x\right )+6\,c\,d\,x\,\mathrm {sinh}\left (e+f\,x\right )\right )}{3}}{f^3}+\frac {a\,\left (3\,c^2\,x+3\,c\,d\,x^2+d^2\,x^3\right )}{3} \]
[In]
[Out]